package cn.daniel.framework.service.impl;

import cn.daniel.framework.bo.IPBlackWhiteListBO;
import cn.daniel.framework.dto.IPBlackWhiteListDTO;
import cn.daniel.framework.service.IPBlackWhiteListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author daniel.tuen
 * @date 2025/9/4 15:04
 * @description
 */
@Service
public class IPBlackWhiteListServiceImpl implements IPBlackWhiteListService {

    @Autowired
    private IPBlackWhiteListBO ipBlackWhiteListBO;

    @Override
    public IPBlackWhiteListDTO add(IPBlackWhiteListDTO ipBlackWhiteListDTO) {
        return ipBlackWhiteListBO.add(ipBlackWhiteListDTO);
    }

    @Override
    public IPBlackWhiteListDTO get(long id) {
        return ipBlackWhiteListBO.get(id);
    }

    @Override
    public List<IPBlackWhiteListDTO> getPage(int pageNo, int pageSize) {
        return ipBlackWhiteListBO.getPage(pageNo, pageSize);
    }
}
